package com.yzs.mvidemo

import android.os.Bundle
import com.yzs.core.Router
import com.yzs.core.base.CoreBaseVBActivity
import com.yzs.core.ext.setNoRepeatClick
import com.yzs.core.ext.toast
import com.yzs.mvidemo.databinding.ActivityRouterBinding

/**
 *    author : yzs
 *    date   : 2022/1/1211:12
 *    desc   :
 */
class RouterActivity : CoreBaseVBActivity<ActivityRouterBinding>(ActivityRouterBinding::inflate) {

    override fun init(savedInstanceState: Bundle?) {

    }

    override fun onClick() {
        setNoRepeatClick(binding.btnDemo, binding.btnFlow, binding.btnFlow2) {
            when (it) {
                binding.btnDemo -> Router.startDemo()
                binding.btnFlow -> Router.startFlow()
                binding.btnFlow2 -> Router.startDemoJava()
            }
        }
        binding.btnDemo
    }
}